package cn.stylefeng.guns.modular.business.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 卡面值
 * </p>
 *
 * @author jwj
 * @since 2019-07-12
 */
@TableName("c_card_quota")
@Data
public class CardQuota implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "card_quota_id", type = IdType.AUTO)
    private Integer cardQuotaId;

    /**
     * 面值
     */
    @TableField("name")
    private String name;

    /**
     * 面值金额
     */
    @TableField("amount")
    private Integer amount;

    /**
     * 成本费率
     */
    @TableField("cost_rate")
    private Float costRate;

    /**
     * 初级用户费率
     */
    @TableField("init_recover_rate")
    private Float initRecoverRate;

    /**
     * 中级费率
     */
    @TableField("mid_recover_rate")
    private Float midRecoverRate;

    /**
     * 高级费率
     */
    @TableField("high_recover_rate")
    private Float highRecoverRate;

    /**
     * 类别id
     */
    @TableField("cataory_id")
    private Long cataoryId;

    /**
     * 类别名称
     */
    @TableField("cataory_name")
    private String cataoryName;

    /**
     * 排序
     */
    @TableField("order_index")
    private Integer orderIndex;

    /**
     * 启用禁用1启用，2禁用
     */
    @TableField("status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField("delete_flag")
    private Integer deleteFlag;

    @Override
    public String toString() {
        return "CardQuota{" +
        "cardQuotaId=" + cardQuotaId +
        ", name=" + name +
        ", amount=" + amount +
        ", costRate=" + costRate +
        ", initRecoverRate=" + initRecoverRate +
        ", midRecoverRate=" + midRecoverRate +
        ", highRecoverRate=" + highRecoverRate +
        ", orderIndex=" + orderIndex +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        "}";
    }
}
